package test1225;

public class Test07 {
    public static void main(String[] args) {
        // 打印arr与brr的差集
        int[] arr = {1,2,3,4,5};
        int[] brr = {3,4,5,6,7};
        m07(arr, brr);
    }
    public static void m07(int[] arr, int[] brr) {
        for (int i = 0; i < arr.length; i++) {
            boolean x = false;
            for (int j = 0; j < brr.length; j++) {
                if (arr[i] == brr[j]) {
                    x = true;
                    break;
                }
            }
            if (!x) {
                System.out.println(arr[i]);
            }
        }
    }
}
